Repository navigation
[agentmesh] Add Agent Mesh CLI extension - #10341
Ethan Yang (necusjz) merged 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Hi Kshitija Murudi (@kmurudi), |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
agentmesh |
There was a problem hiding this comment.
🟡 Changes recommended
One moderate test-coverage issue and one documentation nit remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds a generated preview az agentmesh extension for managing Agent Mesh fabrics, members, and policy groups using the 2026-07-21-preview API.
Changes:
- Adds CRUD, PATCH, LRO, pagination, and wait commands.
- Adds packaging, metadata, documentation, history, and service registration.
- Adds offline command-help and request-shape tests.
File summaries
| File | Summary |
|---|---|
src/service_name.json |
Registers the Agent Mesh service. |
src/agentmesh/setup.py |
Defines extension packaging metadata. |
src/agentmesh/setup.cfg |
Provides setup configuration. |
src/agentmesh/README.md |
Documents installation and command examples. Nit (3 votes): correct the discriminated workload example. |
src/agentmesh/linter_exclusions.yml |
Configures generated-code lint exclusions. |
src/agentmesh/HISTORY.rst |
Records the initial preview release. |
src/agentmesh/azext_agentmesh/tests/latest/test_agentmesh.py |
Tests help, examples, and request shapes. Moderate (1 vote): include the three generated wait commands in COMMANDS. |
src/agentmesh/azext_agentmesh/tests/latest/recordings/test_agentmesh_command_help.yaml |
Stores command-help recording data. |
src/agentmesh/azext_agentmesh/tests/latest/__init__.py |
Initializes latest tests. |
src/agentmesh/azext_agentmesh/tests/__init__.py |
Initializes the test package. |
src/agentmesh/azext_agentmesh/custom.py |
Provides custom-command setup. |
src/agentmesh/azext_agentmesh/commands.py |
Provides command loading setup. |
src/agentmesh/azext_agentmesh/azext_metadata.json |
Declares preview status and minimum CLI version. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_wait.py |
Implements policy-group wait operations. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_update.py |
Implements policy-group PATCH updates. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_show.py |
Implements policy-group retrieval. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_list.py |
Implements policy-group listing and pagination. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_delete.py |
Implements policy-group deletion. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/__init__.py |
Initializes policy-group commands. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/__cmd_group.py |
Registers the policy-group command group. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_wait.py |
Implements member wait operations. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_update.py |
Implements member PATCH updates. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_show.py |
Implements member retrieval. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_list.py |
Implements member listing and pagination. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_delete.py |
Implements member deletion. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_create.py |
Implements member creation and workload serialization. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/__init__.py |
Initializes member commands. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/__cmd_group.py |
Registers the member command group. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_wait.py |
Implements fabric wait operations. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_update.py |
Implements fabric PATCH updates. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_show.py |
Implements fabric retrieval. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_list.py |
Implements fabric listing and pagination. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_delete.py |
Implements fabric deletion. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_create.py |
Implements fabric creation. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/__init__.py |
Initializes fabric commands. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/__cmd_group.py |
Registers the fabric command group. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__init__.py |
Initializes Agent Mesh commands. |
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__cmd_group.py |
Registers the root command group. |
src/agentmesh/azext_agentmesh/aaz/latest/__init__.py |
Initializes the latest API package. |
src/agentmesh/azext_agentmesh/aaz/__init__.py |
Initializes the generated AAZ package. |
src/agentmesh/azext_agentmesh/_params.py |
Provides parameter-loading setup. |
src/agentmesh/azext_agentmesh/_help.py |
Provides help registration setup. |
src/agentmesh/azext_agentmesh/__init__.py |
Loads generated commands. |
Review details
Suppressed comments (1)
src/agentmesh/azext_agentmesh/tests/latest/test_agentmesh.py:140
COMMANDSis also the source fortest_agentmesh_command_help, but it omits the three generatedagentmesh ... waitcommands. Consequently, the new wait registrations are not exercised by either the help test or the generated-example test; add these commands to the help-only list (the wait classes do not have:example:docstrings) so a broken wait import or registration is caught offline.
- Files reviewed: 44/44 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
[Release] Update index.json for extension [ agentmesh-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=181510540&view=results |
This checklist is used to make sure that common guidelines for a pull request are followed.
This adds a generated preview Azure CLI extension for managing Azure Agent Mesh fabrics, fabric members, and policy groups. The extension uses the
2026-07-21-previewAPI and preserves generated long-running create, update, and delete behavior, including PATCH-based updates.The package includes command help and examples, offline command-discovery and request-shape tests, preview metadata, release history, and service-name registration. No CODEOWNERS entry is included because no verified Agent Mesh owner mapping was available in the service specification; no owner handles were invented.
Related command
az agentmeshCommands added
az agentmesh fabric:create,show,list,update,deleteaz agentmesh fabric member:create,show,list,update,deleteaz agentmesh policy-group:create,show,list,update,deleteEach category also includes a generated
waitcommand for long-running operations.General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.